package com.oop.demo08;

public class Person {
    //赋初值
    {
        System.out.println("匿名代码块---");
    }
    //类加载就会有和创建对象无关
    static {
        System.out.println("静态代码块---");
    }

    public Person(){
        System.out.println("构造方法-----");
    }

    public static void main(String[] args) {
        Person person1 = new Person();
        System.out.println("=========");
        Person person2 = new Person();


    }

}
